package sample.algo.sistr.algosample.algos.graphs;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;

/**
 * Created by sistr on 28/09/14.
 */
public class Graph {

    private final LinkedList<Node> nodes;

    public Graph() {
        nodes = new LinkedList<Node>();
    }

    public void AddNode(Node node) {
        nodes.add(node);
    }

    public Iterator<Node> start() {
        return nodes.iterator();
    }
}
